define(function () {
    return function ($scope, $http, Resource) {
        $scope.testSubmit = function () {
            console.log($scope.UserForm);
            console.log($scope.employee);
            $http.post('/gillion-web/system/employees', {
                name: 'liaowj',
                password: '123456',
                confirmPassword: '123456',
                mobile: '18659297460',
                dept: {
                    id: '1',
                    deptName: '制造部'
                },
                roles: [
                    {
                        id: '1',
                        roleName: '管理员'
                    }
                ]
            }, function (result) {
                console.log(result)
            })
        };
    };
});